﻿package mortal.game.net.command.drugPack
{
    import Framework.MQ.*;
    import Message.Game.*;
    import Message.Public.*;
    import com.gengine.debug.*;
    import mortal.game.events.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.view.drugBack.*;
    import mortal.mvc.core.*;

    public class DrugPackCommand extends BroadCastCall
    {

        public function DrugPackCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            Log.debug("I have receive DrugPackCommand");
            var _loc_2:* = param1.messageBase as SDrugBagInfo;
            var _loc_3:* = _cache.DrugPack.getDataBuyType(_loc_2.type);
            switch(_loc_2.type)
            {
                case EDrug._EDrugLifeBag:
                {
                    break;
                }
                case EDrug._EDrugManaBag:
                {
                    break;
                }
                case EDrug._EDrugPetLifeBag:
                {
                    break;
                }
                default:
                {
                    break;
                }
            }
            if (_loc_2.remain == 0)
            {
            }
            else
            {
            }
            _loc_3.cd = _loc_2.useDt;
            NetDispatcher.dispatchCmd(ServerCommand.DrugUpdata, null);
            return;
        }// end function

    }
}
